#include "platform.h"
#include "common.h"
#include "data.h"
#include "ui_login.h"
#include <QtWidgets/QApplication>

_data* d;

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	d = _data::getInstance();
	d->createConnection();
	d->read();
	loginWindow login(nullptr);
	if (login.exec() == QDialog::Accepted) {
		platform w;
		w.show();
		return a.exec();
	}
	return 0;
	
}
